package 链表实现队列;

public class Test {
    public static void main(String[] args) {
        Queue<Integer> queue = new Queue<>(3);
        System.out.println(queue.offer(1));
        System.out.println(queue.offer(2));
        System.out.println(queue.offer(3));
        System.out.println(queue.offer(4));
        for (Integer i : queue) {
            System.out.println(i);
        }

    }
}
